﻿<%@ Page Title="COMPROBANTE DE ENTRADA DE CAJA" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="FrmEntradaCaja.aspx.cs" Inherits="UI.Tesoreria.FrmEntradaCaja" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">

         .styleCOntrolIngreso
        {
            width: 60px;
            height: 26px;
        }
        .botoncito
        {
            height: 26px;
        }
        .style78
        {
            width: 3979px;
        }
        .style79
        {
            width: 3px;
        }
                
         .style4
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 30px;
        }
        .style56
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 126px;
        }
        .style59
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
    /*color: #333333;*/
        text-align: left; /*line-height: 0px;*/;
            font-size: 11px; /*font-weight: bold;*/ /*padding-top: 4px;
    padding-left: 4px;*/;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 160px;
        }
        .style58
        {
            width: 11px;
        }
                        
         .style52
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 134px;
        }
        .style51
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
           
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 18px;
            width: 126px;
        }
                
         .style48
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        text-align: left;
            padding-top: 4px;
            padding-left: 4px;
            }
        .style57
        {
            height: 25px;
            width: 126px;
        }
        .style60
        {
            width: 160px;
        }
                        
         .style42
        {
            height: 25px;
            width: 134px;
        }
        .style2
        {
            height: 25px;
        }
                
         .style63
        {
            width: 6px;
        }
        .style82
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 18px;
            width: 881px;
        }
        .style83
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 881px;
        }
                        
         .style84
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 126px;
            height: 23px;
        }
        .style85
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
    /*color: #333333;*/
        text-align: left; /*line-height: 0px;*/;
            font-size: 11px; /*font-weight: bold;*/ /*padding-top: 4px;
    padding-left: 4px;*/;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 160px;
            height: 23px;
        }
        .style86
        {
            width: 11px;
            height: 23px;
        }
        .style87
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 134px;
            height: 23px;
        }
        .style88
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
    /*color: #333333;*/
        text-align: left; /*line-height: 0px;*/;
            font-size: 11px; /*font-weight: bold;*/ /*padding-top: 4px;
    padding-left: 4px;*/;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 23px;
        }
                        
         .style89
        {
            width: 61px;
        }
        .style90
        {
            width: 118px;
        }
                                
         .style91
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 881px;
            height: 20px;
        }
        .style92
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 126px;
            height: 20px;
        }
        .style93
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
    /*color: #333333;*/
        text-align: left; /*line-height: 0px;*/;
            font-size: 11px; /*font-weight: bold;*/ /*padding-top: 4px;
    padding-left: 4px;*/;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 160px;
            height: 20px;
        }
                                
         .style94
        {
            width: 591px;
        }
                                
         .style96
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
        background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;
            color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            height: 22px;
        }
        .style97
        {
            /*background: url(Administration/Images/Grey/captionbckg.gif) repeat-x;*/
   /* background: #f9f9f9 url('../Imagenes/grey/captionbckg.gif') repeat-x;*/
        color: #333333;
            text-align: left;
            font-size: 11px;
            font-weight: bold;
            padding-top: 4px;
            padding-left: 4px;
            font-family: tahoma,arial,verdana,sans-serif;
            width: 881px;
            height: 22px;
        }
                                
         </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <table style="width: 100%;">
            <tr>
                <td class="style78">
                    &nbsp;
                </td>
                <td class="style79">
                    <asp:ImageButton ID="ImageButton4" runat="server" 
                        ImageUrl="~/Imagenes/Iconos/back.png" onclick="ImageButton4_Click"  />
                </td>
                <td>
                    <asp:ImageButton ID="btnGuardarCpVenta" runat="server" 
                        ImageUrl="~/Imagenes/Iconos/accept.png" 
                        onclick="btnGuardarCpVenta_Click"  />
                </td>
            </tr>
        </table>
        <table __designer:mapid="188" frame="border" style="width: 905px">
            <tr __designer:mapid="189">
                <td class="style4" colspan="5">
                    DATOS GENERALES
                </td>
            </tr>
            <tr>
                <td class="style56">
                    TIPO COMPROBANTE
                </td>
                <td class="style59" __designer:mapid="18e">
                    <asp:DropDownList runat="server" Height="22px" Width="233px" 
                        ID="ComboTipoDocumento">
                    </asp:DropDownList>
                </td>
                <td class="style58">
                    &nbsp;
                </td>
                <td class="style52" __designer:mapid="18e">
                    N° COMPROBANTE
                </td>
                <td class="filaTablaBlanco" __designer:mapid="18e">
                    <asp:TextBox runat="server" CssClass="textEntry" Height="19px" ID="txtCodigo0" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr __designer:mapid="190">
                <td class="style84" __designer:mapid="191">
                    <asp:Label runat="server" Text="PERSONA" ID="Label6"></asp:Label>
                </td>
                <td class="style85" __designer:mapid="193">
                    <asp:TextBox runat="server" CssClass="textEntry" Height="19px" Width="319px" ID="txtSocioNegocio"
                        Enabled="False"></asp:TextBox>
                    <asp:AutoCompleteExtender ID="txtSocioNegocio_AutoCompleteExtender" 
                        runat="server" Enabled="True" 
                        ServicePath="http://localhost:57044/Tesoreria/WebService1.asmx" minimumprefixlength="1"
                        servicemethod="Comprobantes"
                        enablecaching="true" 
                        usecontextkey="True" completionsetcount="100"
                        completioninterval="10"
                        TargetControlID="txtSocioNegocio">
                    </asp:AutoCompleteExtender>
               
               
                </td>
                <td class="style86">
                    &nbsp;
                    <asp:ImageButton ID="btnBuscarEmpleado" runat="server" Height="22px" ImageUrl="~/Imagenes/Iconos/search.png"
                        Width="28px" onclick="btnBuscarEmpleado_Click" />
                </td>
                <td class="style87" __designer:mapid="193">
                    FECHA DE DOCUMENTO
                </td>


                <td class="style88" __designer:mapid="193">
                    <asp:TextBox ID="txtFechaDocumento" runat="server"></asp:TextBox>
                    <asp:CalendarExtender ID="txtFechaDocumento_CalendarExtender" runat="server" Enabled="True"
                        Format="dd/MM/yyyy" TargetControlID="txtFechaDocumento">
                    </asp:CalendarExtender>


                </td>
            </tr>
            <tr __designer:mapid="195">
                <td class="style56" __designer:mapid="196">
                    <asp:Label runat="server" Text="CAJA" ID="Label7"></asp:Label>
                </td>
                <td __designer:mapid="198" class="style59">
                    <asp:DropDownList runat="server" Height="22px" Width="316px" ID="ComboCaja" 
                        onselectedindexchanged="ComboCaja_SelectedIndexChanged">
                    </asp:DropDownList>
                </td>
                <td class="style58">
                    &nbsp;</td>
                <td class="style52" __designer:mapid="198">
                    PERIODO
                </td>
                <td class="style48" __designer:mapid="198">
                    <asp:DropDownList runat="server" Height="23px" Width="210px" ID="ComboPeriodo">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr __designer:mapid="1a1">
                <td class="style57" __designer:mapid="1a2">
                    <asp:Label runat="server" ID="labelID" Visible="False" ForeColor="Red"></asp:Label>
                </td>
                <td class="style60" __designer:mapid="1a4">
                    <asp:Label ID="labelErrorCp" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td class="style58">
                    &nbsp;
                </td>
                <td class="style42" __designer:mapid="1a4">
                    &nbsp;
                </td>
                <td class="style2" __designer:mapid="1a4">
                    &nbsp;
                </td>
            </tr>
        </table>
    <asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="233px"
        Width="896px">
        <asp:TabPanel ID="TabPanel1" runat="server" HeaderText="TabPanel1">
            <HeaderTemplate>
                PRODUCTOS Y SERVICIOS</HeaderTemplate>
            <ContentTemplate>
                <table style="width: 100%;">
                    <tr>
                        <td class="style63">
                            &nbsp;
                        </td>
                        <td>
                            <asp:ImageButton ID="btnAgregarItem" runat="server" Height="26px" ImageUrl="~/Imagenes/Iconos/add_to_shopping_cart.png"
                                Width="28px" onclick="btnAgregarItem_Click1" />
                            <asp:ImageButton ID="btnAgregarDeuda" runat="server" Height="26px" 
                                ImageUrl="~/Imagenes/Iconos/add_user.png" 
                                Width="28px" />
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="GridDetalle" runat="server" Width="93px" 
                    AutoGenerateColumns="False" 
                    DataKeyNames="id" Height="16px" onrowcommand="GridDetalle_RowCommand" 
                    onselectedindexchanged="GridDetalle_SelectedIndexChanged" >
                    <Columns>
                        <asp:TemplateField HeaderText="Concepto">
                            <ItemTemplate>
                                <asp:TextBox ID="txtConcepto" runat="server" Text='<%#Eval("Concepto") %>'
                                    Width="260px">
                                </asp:TextBox></ItemTemplate>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="Monto">
                            <ItemTemplate>
                                <asp:TextBox ID="txtMonto" runat="server" Text='<%#Eval("Monto") %>' Width="70px">
                                </asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Monto" HeaderText="Monto" Visible="False" >
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:BoundField>

                          <asp:TemplateField HeaderText="Observacion">
                            <ItemTemplate>
                                <asp:TextBox ID="txtObservacion"  runat="server" Text='<%#Eval("Observacion") %>' Width="350px">
                                </asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>


                        <asp:CommandField SelectText="ELIMINAR" ShowSelectButton="True"  InsertImageUrl="~/Imagenes/Iconos/back.png" />
                        <asp:BoundField DataField="id" HeaderText="id" Visible="False" />
                    </Columns>
                </asp:GridView>
            </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>






        <table __designer:mapid="188" frame="border" style="width: 895px">
            <tr __designer:mapid="189">
                <td class="style97">
                    </td>
                <td class="style96" colspan="2">
                    TOTALES</td>
            </tr>
            <tr>
                <td class="style83">
                    &nbsp;</td>
                <td class="style56">
                    TOTAL</td>
                <td class="style59" __designer:mapid="18e">
                    <asp:TextBox runat="server" CssClass="textEntry" Height="17px" Width="156px" ID="txtNombreCliente3"
                        Enabled="False"></asp:TextBox>
                    <asp:AutoCompleteExtender ID="txtNombreCliente3_AutoCompleteExtender" 
                        runat="server" Enabled="True" 
                        ServicePath="http://localhost:57044/Tesoreria/WebService1.asmx" minimumprefixlength="1"
                        servicemethod="Comprobantes"
                        enablecaching="true" 
                        usecontextkey="True" completionsetcount="100"
                        completioninterval="10"
                        TargetControlID="txtNombreCliente3">
                    </asp:AutoCompleteExtender>
               
               
                </td>
            </tr>
            <tr __designer:mapid="190">
                <td class="style91" __designer:mapid="191">
                    </td>
                <td class="style92" __designer:mapid="191">
                    <asp:Label runat="server" Text="SUB TOTAL" ID="Label8"></asp:Label>
                </td>
                <td class="style93" __designer:mapid="193">
                    <asp:TextBox runat="server" CssClass="textEntry" Height="16px" Width="156px" ID="txtNombreCliente1"
                        Enabled="False"></asp:TextBox>
                    <asp:AutoCompleteExtender ID="txtNombreCliente1_AutoCompleteExtender" 
                        runat="server" Enabled="True" 
                        ServicePath="http://localhost:57044/Tesoreria/WebService1.asmx" minimumprefixlength="1"
                        servicemethod="Comprobantes"
                        enablecaching="true" 
                        usecontextkey="True" completionsetcount="100"
                        completioninterval="10"
                        TargetControlID="txtNombreCliente1">
                    </asp:AutoCompleteExtender>
               
               
                </td>
            </tr>
            <tr __designer:mapid="195">
                <td class="style82" __designer:mapid="196">
                    &nbsp;</td>
                <td class="style51" __designer:mapid="196">
                    <asp:Label runat="server" Text="NOMBRE CLIENTE" ID="Label9"></asp:Label>
                </td>
                <td __designer:mapid="198" class="style59">
                    <asp:TextBox runat="server" CssClass="textEntry" Height="16px" Width="156px" ID="txtNombreCliente2"
                        Enabled="False"></asp:TextBox>
                    <asp:AutoCompleteExtender ID="txtNombreCliente2_AutoCompleteExtender" 
                        runat="server" Enabled="True" 
                        ServicePath="http://localhost:57044/Tesoreria/WebService1.asmx" minimumprefixlength="1"
                        servicemethod="Comprobantes"
                        enablecaching="true" 
                        usecontextkey="True" completionsetcount="100"
                        completioninterval="10"
                        TargetControlID="txtNombreCliente2">
                    </asp:AutoCompleteExtender>
                </td>
            </tr>
            </table>
    



    <asp:Panel ID="Panel2" runat="server"
        style="text-align: center">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <Triggers>
    <asp:PostBackTrigger ControlID= "grvAgregaAlumnos" />
    </Triggers>
    <ContentTemplate>
    
        <table class="BTabla">
            <tr>
                <td class="filaTabla" colspan="3">
                    Búsqueda de Alumnos</td>
            </tr>
            <tr>
                <td class="style29">
                    Codigo</td>
                <td class="style89">
                    <asp:TextBox ID="txtModalCodigo" runat="server" Width="257px" Height="19px"></asp:TextBox>
                </td>
                <td style="text-align: left; margin-left: 40px;" class="style90">
                    <asp:Button ID="btnBuscarModal" runat="server" Height="35px" Text="Buscar" 
                        Width="90px" onclick="btnBuscarModal_Click" />
                </td>
            </tr>
            <tr>
                <td class="style24" colspan="3">
                    <asp:Label ID="lblMensajeModal" runat="server" style="color: #FF0000"></asp:Label>
                </td>
            </tr>
            
        </table>
        

                        <asp:GridView ID="grvAgregaAlumnos" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" 
                        onselectedindexchanged="grvAgregaAlumnos_SelectedIndexChanged" 
                        Width="623px" DataKeyNames="ID" >
                        <Columns>
                            <asp:CommandField SelectText="Agregar" ShowSelectButton="True" >
                            <FooterStyle BackColor="#CC66FF" />
                            </asp:CommandField>
                            <asp:BoundField DataField="codigo" HeaderText="Código">
                            <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="nombres" HeaderText="Nombres">
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="id" HeaderText="ID" Visible="False" />
                            <asp:BoundField DataField="TipoSocioNegocio" HeaderText="Tipo de Socio" />
                        </Columns>
                    </asp:GridView>




        <table class="BTabla">
            <tr>
                <td class="style94">
                    <asp:Label ID="labelErrorBusSN" runat="server"></asp:Label>
                </td>
                <td style="text-align: left; margin-left: 40px;" class="style90">
                    <asp:Button ID="btnBusSalirSN" runat="server" Height="35px" Text="SALIR" 
                        Width="90px" onclick="btnBusSalirSN_Click" />
                </td>
            </tr>
            
        </table>

                    

   </ContentTemplate>
   </asp:UpdatePanel>



 </asp:Panel>


     <asp:HiddenField  ID="HiddenFiel1" runat="server"/>
    <asp:ModalPopupExtender ID="mpeAgregaSocioNegocio" runat="server"
    PopupControlID="Panel2" TargetControlID="HiddenFiel1" BackgroundCssClass="modalBackground">
     </asp:ModalPopupExtender>



</asp:Content>
